﻿namespace NExplorer
{
	public abstract class SingleCategoryMenuBuilder : MenuBuilder
	{
		protected abstract string Category { get; }

		protected void Add(ICommand command)
		{
			Add(command, Category);
		}

		protected void Add<T>() where T : ICommand, new()
		{
			Add<T>(Category);			
		}
	}
}
